<?php
class FiletypeHelper extends AppHelper 
{

	function getFile( $file )
	{
		$ext = explode( '.', $file );
		$last  = count($ext)-1;
		
		return $ext[$last];

	}  
}  

?>
